package com.liyang.springcloud.dao;

/**
 * @description: 账户数据层
 * @author: liyang
 * @date: 2024/1/10 11:16
 **/

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface AccountDao {

   /**
    * @description: 扣减账户余额
    * @author: liyang
    * @date: 2024/1/10 11:17
    * @param: userId 账户
    * @param: money 金额
    **/
    void decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
